<template>
	<view>
		<index-tabbar :tabBars="tabBars" @TarTap="TarData" :tabIndex="tabIndex" ></index-tabbar>
	</view>

</template>
 
<script>
	import indexTabbar from 'pages/my/download/huancun/topbar.vue';
	
	export default {
		components:{
			indexTabbar
		},
		
		data() {
			return {
				tabIndex: "KaoYang",
				tabBars:[
					{
						name: "系统设计",
						id: "KaoYang"
					}
				],
				currentTabComponent: "KaoYang"
			}
		},
		methods:{
			TarData(item){
						//设置id，来显示选中那个标签，显示下划线
						this.tabIndex = item.id;
						//显示标签对应的组件内容
						this.currentTabComponent = item.id
					}
		
		}
	}
</script>
 
<style>
</style>

